// 仅示例
import request from '../utils/request'

export function login (mac, diviceNo) {
  return request({
    url: `divice/pluginActive/${mac}/${diviceNo}`,
    method: 'post',
  })
}

export function bindorNot (mac) {
  return request({
    url: `divice/bindorNot/${mac}`,
    method: 'post',
  })
}

export function mch (diviceNo) {
  return request({
    url: `divice/mch/${diviceNo}`,
    method: 'post',
  })
}

export function queryOrder (orderNo) {
  return request({
    url: `unified/queryOrder/${orderNo}`,
    method: 'post',
  })
}

export function payOrder (equipmentNo, data) {
  return request({
    url: `unified/payOrder/${equipmentNo}`,
    method: 'post',
    data
  })
}

// export function getInfo (token) {
//   return request({
//     url: '/user/info',
//     method: 'get',
//     params: { token }
//   })
// }
export function message () {
  return request({
    url: '/message',
    method: 'get'
  })
}
